home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Games / MAME / src / sound / samples.h < prev    next >
C/C++ Source or Header  |  1999-11-21  |  700b  |  24 lines

  1. #ifndef SAMPLES_H
  2. #define SAMPLES_H
  3.  
  4. struct Samplesinterface
  5. {
  6.     int channels;    /* number of discrete audio channels needed */
  7.     int volume;        /* global volume for all samples */
  8.     const char **samplenames;
  9. };
  10.  
  11.  
  12. /* Start one of the samples loaded from disk. Note: channel must be in the range */
  13. /* 0 .. Samplesinterface->channels-1. It is NOT the discrete channel to pass to */
  14. /* mixer_play_sample() */
  15. void sample_start(int channel,int samplenum,int loop);
  16. void sample_set_freq(int channel,int freq);
  17. void sample_set_volume(int channel,int volume);
  18. void sample_stop(int channel);
  19. int sample_playing(int channel);
  20.  
  21. int samples_sh_start(const struct MachineSound *msound);
  22.  
  23. #endif
  24.